#ifndef DATABASEHANDLER_H
#define DATABASEHANDLER_H

#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>

class DatabaseHandler
{
public:
    DatabaseHandler();
    ~DatabaseHandler();
    bool startup();
protected:
    bool createTables();
private:
    QString dbPath_;
    QSqlDatabase db_;
    bool isOpen_;
};

#endif // DATABASEHANDLER_H
